package com.lyy.blog.dao;

import com.lyy.blog.po.comment;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface CommentRepository extends JpaRepository<comment,Long> {

    List<comment> findByBlogIdAndParentcommentNull(Long blogId, Sort sort);
}
